package com.byit.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.byit.domain.SysUser;
import com.byit.domain.SysUserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 后台用户表 Mapper 接口
 * </p>
 *
 * @author wangx
 * @since 2018-12-11
 */
@Repository
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    void deleteByUserIds(@Param("userIds") List<Long> userIds);

    void deleteByRoleIds(@Param("roleIds") List<Long> roleIds);

    Integer selectByRoleIds(@Param("roleIds") List<Long> roleIds);

}